﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ZYL
{
        class Person
        {
            private int Id;
            private string Name;
            private char Sex;
            private int Cardid;
            private string Tel;
            public int id { get; set; }
            public string name { get; set; }
            public char sex { get; set; }
            public int cardid { get; set; }
            public string tel { get; set; }
            public Person(int id, string name, char sex, int cardid, string tel)
            {
                this.id = id;
                this.name = name;
                this.sex = sex;
                this.tel = tel;
                this.cardid = cardid;
            }
            public void PrintStu()
            {
                Console.WriteLine("我的学号{0}，我的名字{1}，我的性别{2}，我的身份证号{3}，我的联系方式{4}", 
                    this.id, this.name, this.sex, this.cardid, this.tel);
            }
            public void PrintTea()
            {
                Console.WriteLine("我的编号{0}，我的名字{1}，我的性别{2}，我的身份证号{3}，我的联系方式{4}",
                    this.Id, this.Name, this.Sex, this.Cardid, this.Tel);
            }
        }
}
